<template>
  <PageBox :data="dataInfo" @searchBtn="getTbody">
    <template #search="{ search }">
      <ElFormItemBox label="物料类型" :prop="`categoryCode`">
        <ElSelectBox :data="search" dataName="categoryCode" :options="options.goodsCategory" />
      </ElFormItemBox>
      <ElFormItemBox label="结存日期">
        <ElDaysBox :data="search" :dataName="['beginTime', 'endTime']" />
      </ElFormItemBox>
    </template>
  </PageBox>
</template>

<script setup lang="ts">
const { proxy } = getCurrentInstance() as any;
import './pageCss.scss'; // 引入样式
import { useListComponent } from './pageTs'; // 引入逻辑
const { dataInfo, getTbody, options } = useListComponent();
import { getGoodType } from '@/utils/optionsArr.ts';
onMounted(() => {
  getGoodType(options, 'goodsCategory')
});
</script>
